{x2;include:header}
<body>
{x2;include:nav}
<div class="container-fluid">
    <div class="row-fluid">
        <div class="main">
            <div class="col-xs-2 leftmenu">
                {x2;include:menu}
            </div>
            <div id="datacontent">
                <div class="box itembox" style="margin-bottom:0px;border-bottom:1px solid #CCCCCC;">
                    <div class="col-xs-12">
                        <ol class="breadcrumb">
                            <li><a href="index.php?{x2;$_app}-master">{x2;$apps[$_app]['appname']}</a></li>
                            <li><a href="index.php?bank-master-coupon">代金券管理</a></li>
                            <li class="active">添加代金券</li>
                        </ol>
                    </div>
                </div>
                <div class="box itembox" style="padding-top:10px;margin-bottom:0px;">
                    <h4 class="title" style="padding:10px;">
                        添加代金券
                        <a class="btn btn-primary pull-right" href="index.php?bank-master-coupon">代金券列表</a>
                    </h4>
                    <form action="index.php?bank-master-coupon-batadd" method="post" class="form-horizontal">
                        <fieldset>
                            <div class="form-group">
                            </div>
                            <div class="form-group">
                                <label for="createnumber" class="control-label col-sm-2">生成数量</label>
                                <div class="col-sm-4">
                                    <input class="form-control" name="createnumber" id="createnumber" type="text" needle="needle" datatype="number" max="2" alt="请输入生成数量"  msg="每次生成数量最多为99个" value="10"/>
                                    <span class="help-block">请输入生成数量</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="couponvalue" class="control-label col-sm-2">兑换分值</label>
                                <div class="col-sm-4">
                                    <input class="form-control" type="text" id="couponvalue" needle="needle" datatype="number" min="2" max="4" msg="分值应在10-9999之间" name="couponvalue" value="100"/>
                                    <span class="help-block">代金券使用后将增加使用用户的相应分值</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="couponvalue" class="control-label col-sm-2"></label>
                                <div class="col-sm-9">
                                    <button class="btn btn-primary" type="submit">提交</button>
                                    <input type="hidden" name="addcoupon" value="1"/>
                                    {x2;if:is_array($search)}{x2;tree:$search,arg,aid}
                                    <input type="hidden" name="search[{x2;v:key}]" value="{x2;v:arg}"/>
                                    {x2;endtree}{x2;endif}
                                </div>
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{x2;include:footer}
</body>
</html>
